<div class="row">
	<div class="col-xs-12">
		<div class="box">
			<div class="box-header">
				<h3 class="box-title"><span style="color:#3C8DBC !important;"><span class="glyphicon glyphicon-folder-open"></span> &nbsp;Manage the email notifications you receive for new job openings </span></h3>
				<!--<a href="<?php echo base_url();?>jobseekers/new-rule"><button type="button" class="btn btn-primary btn-sm pull-right" style="margin-right: 10px; margin-top: 5px;"><span class="glyphicon glyphicon-plus"></span> Add New</button></a>-->
			</div><!-- /.box-header -->
			<div class="box-body table-responsive">
				<p>You may see below the list of the rules defined by you (an email message will be sent when a job ad corresponding to your criteria is added)</p>
				<table id="example2" class="table table-bordered table-hover">
					<thead>
						<tr>
							<th>Containing Word</th>
							<th>Category</th>
							<th>Location</th>
							<th>Action</th>
						</tr>
					</thead>
					<tbody>
						<?php
							$this->load->helper('text');
							foreach($job_alerts->result() as $job_alert){
								$job_alert_id=$job_alert->job_alert_id;
								$keyword=$job_alert->keyword;
								$category_name=$job_alert->category_name;
								$location_name=$job_alert->location_name;
								
						?>
								<tr>
									<td><?php echo character_limiter($keyword, 35);?></td>
									<td><?php echo $category_name;?></td>
									<td><?php echo $location_name;?></td>
									
									<td>
										
										<a href="<?php echo base_url();?>jobseekers/edit-rule/<?php echo $job_alert_id;?>" class="btn btn-sm btn-primary" title="Update"><span class="glyphicon glyphicon-edit"></span> Edit</a>
										<a href="<?php echo base_url();?>jobseekers/delete-rule/<?php echo $job_alert_id;?>" class="btn btn-sm btn-danger" onclick="return confirm('Are you sure want to delete ?');" title="Delete"><span class="glyphicon glyphicon-trash"></span> Delete</a>
									</td>
								</tr>
						<?php
							}
						?>
					

					</tbody>
					<tfoot>
						<tr>
							<th>Containing Word</th>
							<th>Category</th>
							<th>Location</th>
							<th>Action</th>

						</tr>
					</tfoot>
				</table>
			</div><!-- /.box-body -->
		</div><!-- /.box -->

	</div>

</div><!-- /.row -->